import request from '@/utils/request'

// https://api.wuliuren.com/api/bill-statuses 账单状态列表
export function billStatusesList(data) {
  return request({
    url: 'bill-statuses',
    method: 'get',
    params: data
  })
}

// https://api.wuliuren.com/api/currencies 货币列表
export function currenciesList(data) {
  return request({
    url: 'currencies',
    method: 'get',
    params: data
  })
}

// https://api.wuliuren.com/api/fee-types 费用类型列表
export function feeTypesList(data) {
  return request({
    url: 'fee-types',
    method: 'get',
    params: data
  })
}

// https://api.wuliuren.com/api/fee-types 新增费用类型
export function addFeeTypes(data) {
  return request({
    url: 'fee-types',
    method: 'post',
    data: data
  })
}


export function editFeeTypes(data) {
  return request({
    url: 'fee-types/'+data.id,
    method: 'put',
    data: data
  })
}

export function delFeeTypes(data) {
  return request({
    url: 'fee-types/'+data.id,
    method: 'delete'
  })
}

// https://api.wuliuren.com/api/accounts 收款账户列表
export function accountsList(data) {
  return request({
    url: 'accounts',
    method: 'get',
    params: data
  })
}

// https://api.wuliuren.com/api/accounts 新增收款账户
export function addAccounts(data) {
  return request({
    url: 'accounts',
    method: 'post',
    data: data
  })
}

// https://api.wuliuren.com/api/accounts 收款账户编辑
export function editAccounts(data) {
  return request({
    url: 'accounts/'+data.id,
    method: 'put',
    data: data
  })
}


// https://api.wuliuren.com/api/accounts 删除收款账户
export function delAccounts(data) {
  return request({
    url: 'accounts/'+data.id,
    method: 'delete'
  })
}

// https://api.wuliuren.com/api/invoice-subjects 开票主题列表
export function invoiceSubjectsList(data) {
  return request({
    url: 'invoice-subjects',
    method: 'get',
    params: data
  })
}

// https://api.wuliuren.com/api/invoice-subjects 新增开票主题
export function addInvoiceSubjects(data) {
  return request({
    url: 'invoice-subjects',
    method: 'post',
    data: data
  })
}

// https://api.wuliuren.com/api/invoice-subjects 开票主题详情
export function editInvoiceSubjects(data) {
  return request({
    url: 'invoice-subjects/'+data.id,
    method: 'put',
    params: data
  })
}

// https://api.wuliuren.com/api/invoice-subjects 删除开票主题
export function delInvoiceSubjects(data) {
  return request({
    url: 'invoice-subjects/'+data.id,
    method: 'delete'
  })
}
